Skip to content

Conversation

@SORVER
Copy link
Contributor

@SORVER SORVER commented Oct 24, 2025

This pull request introduces validation support for incoming requests by adding the class-transformer and class-validator libraries, and configuring NestJS to use a global ValidationPipe. This will help ensure that request payloads are automatically validated and transformed according to DTO definitions. The changes also update the lockfile to reflect new dependencies.

Validation and Data Transformation:

  • Added class-transformer and class-validator dependencies to package.json and updated pnpm-lock.yaml accordingly, enabling automatic validation and transformation of DTOs. [1] [2] [3]
  • Configured NestJS to use a global ValidationPipe in src/main.ts, enforcing whitelist validation, forbidding non-whitelisted properties, and transforming payloads.

Dependency Management:

  • Updated all relevant dependency snapshots and references in pnpm-lock.yaml for class-transformer, class-validator, and their transitive dependencies (validator, libphonenumber-js, @types/validator). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

@SORVER SORVER closed this Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant